package com.example.springbootcourse.pojo;

import java.util.ArrayList;
import java.util.List;

public class CourseExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CourseExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andCoursenameIsNull() {
            addCriterion("coursename is null");
            return (Criteria) this;
        }

        public Criteria andCoursenameIsNotNull() {
            addCriterion("coursename is not null");
            return (Criteria) this;
        }

        public Criteria andCoursenameEqualTo(String value) {
            addCriterion("coursename =", value, "coursename");
            return (Criteria) this;
        }

        public Criteria andCoursenameNotEqualTo(String value) {
            addCriterion("coursename <>", value, "coursename");
            return (Criteria) this;
        }

        public Criteria andCoursenameGreaterThan(String value) {
            addCriterion("coursename >", value, "coursename");
            return (Criteria) this;
        }

        public Criteria andCoursenameGreaterThanOrEqualTo(String value) {
            addCriterion("coursename >=", value, "coursename");
            return (Criteria) this;
        }

        public Criteria andCoursenameLessThan(String value) {
            addCriterion("coursename <", value, "coursename");
            return (Criteria) this;
        }

        public Criteria andCoursenameLessThanOrEqualTo(String value) {
            addCriterion("coursename <=", value, "coursename");
            return (Criteria) this;
        }

        public Criteria andCoursenameLike(String value) {
            addCriterion("coursename like", value, "coursename");
            return (Criteria) this;
        }

        public Criteria andCoursenameNotLike(String value) {
            addCriterion("coursename not like", value, "coursename");
            return (Criteria) this;
        }

        public Criteria andCoursenameIn(List<String> values) {
            addCriterion("coursename in", values, "coursename");
            return (Criteria) this;
        }

        public Criteria andCoursenameNotIn(List<String> values) {
            addCriterion("coursename not in", values, "coursename");
            return (Criteria) this;
        }

        public Criteria andCoursenameBetween(String value1, String value2) {
            addCriterion("coursename between", value1, value2, "coursename");
            return (Criteria) this;
        }

        public Criteria andCoursenameNotBetween(String value1, String value2) {
            addCriterion("coursename not between", value1, value2, "coursename");
            return (Criteria) this;
        }

        public Criteria andCoursenumIsNull() {
            addCriterion("coursenum is null");
            return (Criteria) this;
        }

        public Criteria andCoursenumIsNotNull() {
            addCriterion("coursenum is not null");
            return (Criteria) this;
        }

        public Criteria andCoursenumEqualTo(String value) {
            addCriterion("coursenum =", value, "coursenum");
            return (Criteria) this;
        }

        public Criteria andCoursenumNotEqualTo(String value) {
            addCriterion("coursenum <>", value, "coursenum");
            return (Criteria) this;
        }

        public Criteria andCoursenumGreaterThan(String value) {
            addCriterion("coursenum >", value, "coursenum");
            return (Criteria) this;
        }

        public Criteria andCoursenumGreaterThanOrEqualTo(String value) {
            addCriterion("coursenum >=", value, "coursenum");
            return (Criteria) this;
        }

        public Criteria andCoursenumLessThan(String value) {
            addCriterion("coursenum <", value, "coursenum");
            return (Criteria) this;
        }

        public Criteria andCoursenumLessThanOrEqualTo(String value) {
            addCriterion("coursenum <=", value, "coursenum");
            return (Criteria) this;
        }

        public Criteria andCoursenumLike(String value) {
            addCriterion("coursenum like", value, "coursenum");
            return (Criteria) this;
        }

        public Criteria andCoursenumNotLike(String value) {
            addCriterion("coursenum not like", value, "coursenum");
            return (Criteria) this;
        }

        public Criteria andCoursenumIn(List<String> values) {
            addCriterion("coursenum in", values, "coursenum");
            return (Criteria) this;
        }

        public Criteria andCoursenumNotIn(List<String> values) {
            addCriterion("coursenum not in", values, "coursenum");
            return (Criteria) this;
        }

        public Criteria andCoursenumBetween(String value1, String value2) {
            addCriterion("coursenum between", value1, value2, "coursenum");
            return (Criteria) this;
        }

        public Criteria andCoursenumNotBetween(String value1, String value2) {
            addCriterion("coursenum not between", value1, value2, "coursenum");
            return (Criteria) this;
        }

        public Criteria andCourseteacherIsNull() {
            addCriterion("courseteacher is null");
            return (Criteria) this;
        }

        public Criteria andCourseteacherIsNotNull() {
            addCriterion("courseteacher is not null");
            return (Criteria) this;
        }

        public Criteria andCourseteacherEqualTo(String value) {
            addCriterion("courseteacher =", value, "courseteacher");
            return (Criteria) this;
        }

        public Criteria andCourseteacherNotEqualTo(String value) {
            addCriterion("courseteacher <>", value, "courseteacher");
            return (Criteria) this;
        }

        public Criteria andCourseteacherGreaterThan(String value) {
            addCriterion("courseteacher >", value, "courseteacher");
            return (Criteria) this;
        }

        public Criteria andCourseteacherGreaterThanOrEqualTo(String value) {
            addCriterion("courseteacher >=", value, "courseteacher");
            return (Criteria) this;
        }

        public Criteria andCourseteacherLessThan(String value) {
            addCriterion("courseteacher <", value, "courseteacher");
            return (Criteria) this;
        }

        public Criteria andCourseteacherLessThanOrEqualTo(String value) {
            addCriterion("courseteacher <=", value, "courseteacher");
            return (Criteria) this;
        }

        public Criteria andCourseteacherLike(String value) {
            addCriterion("courseteacher like", value, "courseteacher");
            return (Criteria) this;
        }

        public Criteria andCourseteacherNotLike(String value) {
            addCriterion("courseteacher not like", value, "courseteacher");
            return (Criteria) this;
        }

        public Criteria andCourseteacherIn(List<String> values) {
            addCriterion("courseteacher in", values, "courseteacher");
            return (Criteria) this;
        }

        public Criteria andCourseteacherNotIn(List<String> values) {
            addCriterion("courseteacher not in", values, "courseteacher");
            return (Criteria) this;
        }

        public Criteria andCourseteacherBetween(String value1, String value2) {
            addCriterion("courseteacher between", value1, value2, "courseteacher");
            return (Criteria) this;
        }

        public Criteria andCourseteacherNotBetween(String value1, String value2) {
            addCriterion("courseteacher not between", value1, value2, "courseteacher");
            return (Criteria) this;
        }

        public Criteria andCoursedateIsNull() {
            addCriterion("coursedate is null");
            return (Criteria) this;
        }

        public Criteria andCoursedateIsNotNull() {
            addCriterion("coursedate is not null");
            return (Criteria) this;
        }

        public Criteria andCoursedateEqualTo(String value) {
            addCriterion("coursedate =", value, "coursedate");
            return (Criteria) this;
        }

        public Criteria andCoursedateNotEqualTo(String value) {
            addCriterion("coursedate <>", value, "coursedate");
            return (Criteria) this;
        }

        public Criteria andCoursedateGreaterThan(String value) {
            addCriterion("coursedate >", value, "coursedate");
            return (Criteria) this;
        }

        public Criteria andCoursedateGreaterThanOrEqualTo(String value) {
            addCriterion("coursedate >=", value, "coursedate");
            return (Criteria) this;
        }

        public Criteria andCoursedateLessThan(String value) {
            addCriterion("coursedate <", value, "coursedate");
            return (Criteria) this;
        }

        public Criteria andCoursedateLessThanOrEqualTo(String value) {
            addCriterion("coursedate <=", value, "coursedate");
            return (Criteria) this;
        }

        public Criteria andCoursedateLike(String value) {
            addCriterion("coursedate like", value, "coursedate");
            return (Criteria) this;
        }

        public Criteria andCoursedateNotLike(String value) {
            addCriterion("coursedate not like", value, "coursedate");
            return (Criteria) this;
        }

        public Criteria andCoursedateIn(List<String> values) {
            addCriterion("coursedate in", values, "coursedate");
            return (Criteria) this;
        }

        public Criteria andCoursedateNotIn(List<String> values) {
            addCriterion("coursedate not in", values, "coursedate");
            return (Criteria) this;
        }

        public Criteria andCoursedateBetween(String value1, String value2) {
            addCriterion("coursedate between", value1, value2, "coursedate");
            return (Criteria) this;
        }

        public Criteria andCoursedateNotBetween(String value1, String value2) {
            addCriterion("coursedate not between", value1, value2, "coursedate");
            return (Criteria) this;
        }

        public Criteria andCoursedescIsNull() {
            addCriterion("coursedesc is null");
            return (Criteria) this;
        }

        public Criteria andCoursedescIsNotNull() {
            addCriterion("coursedesc is not null");
            return (Criteria) this;
        }

        public Criteria andCoursedescEqualTo(String value) {
            addCriterion("coursedesc =", value, "coursedesc");
            return (Criteria) this;
        }

        public Criteria andCoursedescNotEqualTo(String value) {
            addCriterion("coursedesc <>", value, "coursedesc");
            return (Criteria) this;
        }

        public Criteria andCoursedescGreaterThan(String value) {
            addCriterion("coursedesc >", value, "coursedesc");
            return (Criteria) this;
        }

        public Criteria andCoursedescGreaterThanOrEqualTo(String value) {
            addCriterion("coursedesc >=", value, "coursedesc");
            return (Criteria) this;
        }

        public Criteria andCoursedescLessThan(String value) {
            addCriterion("coursedesc <", value, "coursedesc");
            return (Criteria) this;
        }

        public Criteria andCoursedescLessThanOrEqualTo(String value) {
            addCriterion("coursedesc <=", value, "coursedesc");
            return (Criteria) this;
        }

        public Criteria andCoursedescLike(String value) {
            addCriterion("coursedesc like", value, "coursedesc");
            return (Criteria) this;
        }

        public Criteria andCoursedescNotLike(String value) {
            addCriterion("coursedesc not like", value, "coursedesc");
            return (Criteria) this;
        }

        public Criteria andCoursedescIn(List<String> values) {
            addCriterion("coursedesc in", values, "coursedesc");
            return (Criteria) this;
        }

        public Criteria andCoursedescNotIn(List<String> values) {
            addCriterion("coursedesc not in", values, "coursedesc");
            return (Criteria) this;
        }

        public Criteria andCoursedescBetween(String value1, String value2) {
            addCriterion("coursedesc between", value1, value2, "coursedesc");
            return (Criteria) this;
        }

        public Criteria andCoursedescNotBetween(String value1, String value2) {
            addCriterion("coursedesc not between", value1, value2, "coursedesc");
            return (Criteria) this;
        }

        public Criteria andCourseroomIsNull() {
            addCriterion("courseroom is null");
            return (Criteria) this;
        }

        public Criteria andCourseroomIsNotNull() {
            addCriterion("courseroom is not null");
            return (Criteria) this;
        }

        public Criteria andCourseroomEqualTo(String value) {
            addCriterion("courseroom =", value, "courseroom");
            return (Criteria) this;
        }

        public Criteria andCourseroomNotEqualTo(String value) {
            addCriterion("courseroom <>", value, "courseroom");
            return (Criteria) this;
        }

        public Criteria andCourseroomGreaterThan(String value) {
            addCriterion("courseroom >", value, "courseroom");
            return (Criteria) this;
        }

        public Criteria andCourseroomGreaterThanOrEqualTo(String value) {
            addCriterion("courseroom >=", value, "courseroom");
            return (Criteria) this;
        }

        public Criteria andCourseroomLessThan(String value) {
            addCriterion("courseroom <", value, "courseroom");
            return (Criteria) this;
        }

        public Criteria andCourseroomLessThanOrEqualTo(String value) {
            addCriterion("courseroom <=", value, "courseroom");
            return (Criteria) this;
        }

        public Criteria andCourseroomLike(String value) {
            addCriterion("courseroom like", value, "courseroom");
            return (Criteria) this;
        }

        public Criteria andCourseroomNotLike(String value) {
            addCriterion("courseroom not like", value, "courseroom");
            return (Criteria) this;
        }

        public Criteria andCourseroomIn(List<String> values) {
            addCriterion("courseroom in", values, "courseroom");
            return (Criteria) this;
        }

        public Criteria andCourseroomNotIn(List<String> values) {
            addCriterion("courseroom not in", values, "courseroom");
            return (Criteria) this;
        }

        public Criteria andCourseroomBetween(String value1, String value2) {
            addCriterion("courseroom between", value1, value2, "courseroom");
            return (Criteria) this;
        }

        public Criteria andCourseroomNotBetween(String value1, String value2) {
            addCriterion("courseroom not between", value1, value2, "courseroom");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(String value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(String value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(String value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(String value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(String value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(String value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLike(String value) {
            addCriterion("status like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotLike(String value) {
            addCriterion("status not like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<String> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<String> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(String value1, String value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(String value1, String value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}